
<!doctype html>
<html xmlns="http://www.w3.org/1999/html">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="format-detection" content="telephone=no">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

{php echo register_jssdk(false);}
    <title>{$row['title']}</title>

    <link type="text/css" rel="stylesheet" href="{RES}/mobile/huodong/stylesheets/vweisiteV01.css"/>
    <link type="text/css" rel="stylesheet" href="{RES}/mobile/huodong/stylesheets/font-awesome.css"/>
    <link href="{RES}/mobile/huodong/stylesheets/vweisiteV01/article/article1.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="{RES}/mobile/huodong/assets/font/font-awesome.min.css" media="screen" rel="stylesheet" type="text/css" />

    <meta content="authenticity_token" name="csrf-param" />
<meta content="ysf1Bkyhj6lQnQPrIeONqY6Uc3cfPwbHOjJ06USBoOM=" name="csrf-token" />
  </head>

  <body>
    

    
<div class="html" style="">
   <div class="stage" id="stage">
       <section id="sec-index">
          <div class="body">
               <div class="article ckeditor_content" id="article">

					  <div class="hd">
						<h1>{$row['title']}</h1>
					  </div>

					  <div class="bd">
						
					  
					  
							<div align="center">
							  <br>
							  <img data-pinit="registered" src="{$_W['attachurl']}{$row['thumb']}" style="eight: auto;
width: auto;
max-width: 100%;">
							  <font color="#4986e7"><b><br></b></font>
						   </div>
						   <div>
							  <font color="#4986e7">
							  <b><br></b>
							  </font>
						  </div>
						  <div>
							  <font color="#4986e7">
							  <b>活动简介</b>
							  </font>
						  </div>
						  <div>{$row['description']}</div>
						  <div><br></div>
						  <div><br></div>
						  <div>
							 <b><font color="#4986e7">活动详细内容</font></b>
						  </div>
						  <div>{$row['content']}</div>
						  <div><br></div>
						  <div><br></div>
						  <div>
							 <b><font color="#4986e7">活动时间</font></b>
						  </div>
						  <div>{php echo date('Y/m/d H:i:s', $row['starttime'])} 至 {php echo date('Y/m/d H:i:s', $row['endtime'])}</div>
					      <br><br>
					  </div>

					</div>


          </div>
        </section>

        <section class="mod-navLine navLine-2">
            <ul class="navLine-ul">
              <li>
                <a href="{php echo $this->createMobileUrl('huodongindex')}" class="dev-index">
                    <i class="fa fa-home"></i>
                <small>活动首页</small>
               </a>  
			 </li>
             <li>
                <a href="tel:{$cfg['kefuphone']}" class="">
                    <i class="fa fa-phone"></i>
                <small> 客服电话</small>
                </a>          
		    </li>
            <li>
               <a href="{php echo $this->createMobileUrl('research', array('id' => $id))}" class="">
                    <i class="fa fa-location-arrow"></i>
                <small>报名活动</small>
              </a>          </li>
           </ul>
      </section>


        


      </div><!--.stage end-->
    </div><!--.html end-->


  <footer style="height: 110px;
margin-top: -110px;
line-height: 70px;">Powered By {$_W['account']['name']}</footer>


      

  </body>
  <script type="text/javascript">
  wx.ready(function () {
    var shareData = {
    title: "{$settings['share_title']}",
    desc: "{$settings['share_content']}",
    link: "{$settings['share_link']}",
    imgUrl: "{$_W['attachurl']}{$settings['share_logo']}",
  };
  
  //分享朋友
  wx.onMenuShareAppMessage({
       title: shareData.title,
      desc: shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
        send_intergal();
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
 //朋友圈
  wx.onMenuShareTimeline({
      title: shareData.title+"---"+shareData.desc,
      link: shareData.link,
      imgUrl:shareData.imgUrl,
      trigger: function (res) {
      },
      success: function (res) {
          send_intergal();
      },
      cancel: function (res) {
      },
      fail: function (res) {
        Joel_gmuAlert("分享失败","网络超时！！！！");
      }
    });   
    
  });



function send_intergal(){
   $.ajax({
			type:"POST",
			url:"{php echo $this->createMobileUrl('shareajax')}",
			data:{openid:'{$openid}}'},
			cache:false,
			success:function(data){
				if(data=="no"){
					alert("分享成功,抱歉，网络超时，获取积分失败！！！");
                   
				}
				else if(data=="over"){
				   alert("分享成功,你今天的分享次数已经超过上限哦，请明天再来吧！！！");
				
				}
				else{
				   alert("分享成功,恭喜您，获得{$settings['share_jifen']}个奖励积分！今天你还有"+data+"次分享赚积分机会哦！");
				}
			}
		});
}


        </script>
</html>
